﻿using System;

namespace System {
	/// <summary>
	/// Metadata
	/// </summary>
	#if !SILVERLIGHT
	[Serializable()]
	#endif
	public class PackageMetadata {
		#region Fields
		public static readonly PackageMetadata Default = new PackageMetadata();
		private readonly Boolean _trackChanges = true;
		#endregion
		#region Constructor
		/// <summary>
		/// Initializes a new instance of the <see cref="PackageMetadata"/> class.
		/// </summary>
		public PackageMetadata() {

		}
		/// <summary>
		/// Initializes a new instance of the <see cref="PackageMetadata"/> class.
		/// </summary>
		/// <param name="trackChanges">if set to <c>true</c> [track changes].</param>
		public PackageMetadata(Boolean trackChanges) {
			_trackChanges = trackChanges;
		}
		#endregion
		#region Property
		/// <summary>
		/// Gets a value indicating whether changes are being tracked.
		/// </summary>
		/// <value><c>true</c> if track changes; otherwise, <c>false</c>.</value>
		public Boolean TrackChanges {
			get {
				return _trackChanges;
			}
		}
		#endregion
	}
}
